//
//  TrainingProjectData.m
//  JiZhuiAn
//
//  Created by Easy.Lin on 16/7/6.
//  Copyright © 2016年 Easy. All rights reserved.
//

#import "TrainingProjectData.h"

@implementation TrainingProjectData

- (instancetype)initFromBmobObject:(BmobObject *)obj
{
    self = [super initFromBmobObject:obj];
    if (self) {
        self.part               = [[obj objectForKey:@"part"] integerValue];
        self.date               = [[obj objectForKey:@"date"] integerValue];
        self.severity           = [[obj objectForKey:@"severity"] integerValue];
        self.time               = [obj objectForKey:@"time"];
        self.projectDescription = [obj objectForKey:@"description"];
        //self.fullTimeVideoURL   = [obj objectForKey:@"fullTimeVideoURL"];
        self.videoIdArray       = [obj objectForKey:@"videoIdArray"] != nil ? [obj objectForKey:@"videoIdArray"] : @[];
    }
    return self;
}

@end
